package com.gary.component;

import android.support.v7.widget.Toolbar;
import android.view.View;

/**
 * Author：gary
 * <p/>
 * Email: xuhaozv@163.com
 * <p/>
 * description:
 * <p/>
 * Date: 2018/3/30 下午12:14
 */
public class BaseFragment extends FMSupportFragment {

    void _initToolbar(Toolbar toolbar) {
        toolbar.setTitle("SwipeBackActivity's Fragment");
        toolbar.setNavigationIcon(R.mipmap.ic_arrow_back_white_24dp);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                _mActivity.onBackPressed();
            }
        });
    }
}
